package com.paco.study.cloud.user.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "cloud-service-code",
        path = "/code",
        fallback = CodeFeignFallBack.class,configuration = FeignConfig.class)
public interface CodeFeignClient {
    //调用的请求路径
    @GetMapping(value = "/validate/{email}/{code}")
    boolean validate(@PathVariable("email") String email,
                 @PathVariable("code") String code);
}